<template>
  <view class="container pagebg">
    <!-- 第一块 -->
    <view class="tui-notice__bar">
      <view class="tui-notice__wrap tui-notice__wrap-scroll" :style="{ height: noticeHeight }">
        <view class="tui-notice__content">
          <text class="tui-notice__text tui-notice__scrollable">
			测算结果仅供娱乐，我平台产品拒绝向未成年提供服务，如未成年人使用且造成一切后果由其监护人自动承担!
          </text>
        </view>
      </view>
    </view>
    <!-- 第二块 -->
    <view class="banner">
      <view class="zhuanpan">
        <view class="banner_bottom"></view>
        <view class="banner_middle"></view>
        <view class="taiji"></view>
      </view>
    </view>
    <!-- 第三块 -->
    <view class="bottond" :class="{ bottonds: isScrolled }">
      <navigator url="/pages/tianxie/tianxie"><image src="/static/img/btn.png" alt="按钮" /></navigator>
    </view>
    <view class="mylist">
      <navigator url="/pages/order/order" class="mylist">查询我的订单&gt;</navigator>
    </view>
    <view class="imgafg">
      <image src="/static/img/homeImg1.png"  mode="widthFix" alt="首页图片1" />
      <image src="/static/img/homeImg2_bd.png" mode="widthFix"  alt="首页图片2" />
      <image src="/static/img/homeImg3_bd.png" mode="widthFix"  alt="首页图片3" />
      <image src="/static/img/homeImg4.png"  mode="widthFix"  alt="首页图片4" />
    </view>
    <view class="haishen">
      <image src="/static/img/dazhaod.png" mode="widthFix" alt="大招图1" />
      <image src="/static/img/dazhao2.png" mode="widthFix" alt="大招图2" />
    </view>
  </view>
</template>
<script>
export default {
  data() {
    return {
      isScrolled: false,
      noticeHeight: '13px',
    };
  },
  methods: {
    handleScroll() {
		console.log("xxxxxxxxxxxxxxxxxxxx")
      // 获取页面滚动位置
      const scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
      this.isScrolled = scrollTop > 300; // 根据需要调整阈值
    }
  },
  mounted() {
    window.addEventListener('scroll', this.handleScroll); // 监听滚动事件
  },
  beforeDestroy() {
    window.removeEventListener('scroll', this.handleScroll); // 清除事件监听
  }
}
</script>
<style scoped>
page{
	background-color: #202045;
}
.tui-notice__bar {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    flex-direction: row;
    align-items: center;
    background-color: rgb(51, 51, 51);
    padding: 0px;
    height: 27px;
    top: auto;
}
.tui-notice__fixed {
    position: fixed;
    left: 0;
    z-index: 100
}
.tui-notice__shrink {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer
}
.tui-notice__wrap {
    flex: 1;
    flex-direction: column;
    overflow: hidden
}
.tui-notice__wrap-scroll {
    flex-direction: row
}
.tui-notice__wrap-scroll {
    position: relative
}
.tui-notice__content {
    flex: 1;
    display: block;
    overflow: hidden
}
.tui-notice__text {
    word-break: break-all
}
.tui-notice__content-single {
    display: flex;
    flex: none;
    width: 100%;
    justify-content: center
}
.tui-notice__single {
    display: block;
    width: 100%;
    white-space: nowrap;
    flex-direction: row;
    overflow: hidden;
    text-overflow: ellipsis
}
.tui-notice__scrollable {
    position: absolute;
    display: block;
    white-space: nowrap;
    padding-left: 101%;
    -webkit-animation: notice-data-v-3cdaa0c3 10s 0s linear infinite both;
    animation: notice-data-v-3cdaa0c3 10s 0s linear infinite both;
    -webkit-animation-play-state: paused;
    animation-play-state: paused;
    -webkit-backface-visibility: hidden;
    -webkit-perspective: 1000;
	color: rgb(255, 255, 255); 
	font-size: 13px; 
	line-height: 13px; animation-play-state: running;
	 animation-delay: 0s; 
	 animation-duration: 10.2661s;
}
@-webkit-keyframes notice-data-v-3cdaa0c3 {
    100% {
        -webkit-transform: translate3d(-100%, 0, 0);
        transform: translate3d(-100%, 0, 0)
    }
}

@keyframes notice-data-v-3cdaa0c3 {
    100% {
        -webkit-transform: translate3d(-100%, 0, 0);
        transform: translate3d(-100%, 0, 0)
    }
}

.banner {
    height: 512px;
    background: url(/static/img/banner.png) no-repeat;
    background-size: 100% 100%;
    overflow: hidden
}

.banner .zhuanpan {
    width: 325px;
    height: 325px;
    position: relative;
    margin-top: 50px;
    margin-left: 215px
}

.banner .banner_bottom {
    width: 325px;
    height: 325px;
    background: url(/static/img/bottom.png) no-repeat;
    background-size: 100% 100%;
    -webkit-animation: bottomRorating-data-v-63a34b41 5s linear infinite;
    animation: bottomRorating-data-v-63a34b41 5s linear infinite
}

.banner .banner_middle {
    position: absolute;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    width: 225px;
    height: 225px;
    background: url(/static/img/middle.png) no-repeat;
    background-size: 100% 100%;
    -webkit-animation: middleRorating-data-v-63a34b41 5s linear infinite;
    animation: middleRorating-data-v-63a34b41 5s linear infinite
}

.banner .taiji {
    position: absolute;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    background: url(/static/img/taiji.png) no-repeat;
    background-size: 100% 100%
}

@-webkit-keyframes bottomRorating-data-v-63a34b41 {
    0% {
        -webkit-transform: rotate(0);
        transform: rotate(0)
    }

    to {
        -webkit-transform: rotate(1turn);
        transform: rotate(1turn)
    }
}

@keyframes bottomRorating-data-v-63a34b41 {
    0% {
        -webkit-transform: rotate(0);
        transform: rotate(0)
    }

    to {
        -webkit-transform: rotate(1turn);
        transform: rotate(1turn)
    }
}

@-webkit-keyframes middleRorating-data-v-63a34b41 {
    0% {
        -webkit-transform: translate(-50%, -50%) rotate(0);
        transform: translate(-50%, -50%) rotate(0)
    }

    to {
        -webkit-transform: translate(-50%, -50%) rotate(-1turn);
        transform: translate(-50%, -50%) rotate(-1turn)
    }
}

@keyframes middleRorating-data-v-63a34b41 {
    0% {
        -webkit-transform: translate(-50%, -50%) rotate(0);
        transform: translate(-50%, -50%) rotate(0)
    }

    to {
        -webkit-transform: translate(-50%, -50%) rotate(-1turn);
        transform: translate(-50%, -50%) rotate(-1turn)
    }
}

.bottond {
    z-index: 9999
}

.bottond image {
    display: block;
    width: 350px;
    height: 50px;
    margin: 20px auto;
    -webkit-animation: bamiao-data-v-63a34b41 2s linear infinite;
    animation: bamiao-data-v-63a34b41 2s linear infinite
}

.bottonds {
    z-index: 9999;
    position: fixed;
    bottom: 15px;
    left: 50%;
    margin-left: -175px
}

.bottonds image {
    display: block;
    width: 350px;
    height: 50px;
    margin: 20px auto 0;
    -webkit-animation: bamiao-data-v-63a34b41 2s linear infinite;
    animation: bamiao-data-v-63a34b41 2s linear infinite
}

@-webkit-keyframes bamiao-data-v-63a34b41 {
    0% {
        -webkit-transform: scale(.9);
        transform: scale(.9)
    }

    50% {
        -webkit-transform: scale(1);
        transform: scale(1)
    }

    100% {
        -webkit-transform: scale(.9);
        transform: scale(.9)
    }
}

@keyframes bamiao-data-v-63a34b41 {
    0% {
        -webkit-transform: scale(.9);
        transform: scale(.9)
    }

    50% {
        -webkit-transform: scale(1);
        transform: scale(1)
    }

    100% {
        -webkit-transform: scale(.9);
        transform: scale(.9)
    }
}

.mylist {
    text-align: center;
    color: #f9d560;
    font-size: 14px;
}

.imgafg {
    padding: 15px 15px
}

.imgafg image {
   width: 100%;
    height: 100%;
    margin-bottom: 10px
}

.haishen {
    margin-top: 10px;
    padding: 20px;
    margin-bottom: 200px;
}

.haishen image {
    width: 100%
}


/* 填写 */
.top {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: 45px;
    line-height: 45px;
    text-align: center;
    display: flex;
    padding: 5px;
    background: #202045;
}
.left{
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.top .center{
    width: 100%;margin-left: 50px;
}


.uni-input-form,
.uni-input-wrapper {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    position: relative;
    width: 100%;
    height: 100%;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
}

.textyud {
    text-align: center;
    color: #fff;
    opacity: .7;
    font-size: 14px;
}

.textyud1 {
    margin: 30px 15px 0;
    padding-bottom: 50px;
}

.cur {
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    margin: 0px 30px 0 0;
    color: #a7a7db;
    cursor: pointer;
}
.zhoinjiand .curz {
    background-color: #efc15d;
    color: #021032;
}
.liview input {
    width: 90%;
    padding: 8px 0 5px 8px;
    background: none;
    border: 0;
    color: #fff;
    font-size: 16px;
}
.liview input::placeholder{
    color: #fff;
    opacity: .5;
}
.nocie{
    position: fixed;
    display: none;
    top: calc((100vh - 45px) / 2);
    left: calc((100vw - 150px) / 2);
    width: 150px;
    background: #000;
    border-radius: 5px;
    text-align: center;
    line-height: 45px;
    color: #fff;
}
.box2{
    background: #fff;
    margin: 25px 10px 20px;
    border-radius: 12px;
}
.post input {
    margin: 20px 20px;
    text-align: center;
    height: 50px;
    background: #f5f5f5;
    border-radius: 40px;
    width: 90%;
}

input {
    display: block;
    font-size: 16px;
    line-height: 1.4em;
    height: 1.4em;
    min-height: 1.4em;
    border: 0;
}
.button{
    display: inline-block;
    border-radius: 40px;
    width: 90%;
    height: 50px;
    text-align: center;
    font-size: 17px;
    line-height: 50px;
    margin: 0px 5% 20px;
    background-image: linear-gradient(90deg, #4f609c, #6e7fbd);
    color: #fff;
}
.font2 {
    font-size: 17px;
    width: 85%;
    font-weight: 700;
    margin: auto;
    margin-bottom: 20px;
}
.box3 {
    font-size: 15px;
}
.box3 .one {
    background: #fff;
    margin: 20px 10px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-around;
    padding: 15px 0 15px 0;
}
.box3 .two {
    background: #fff;
    margin: -18px 10px 20px;
    border-radius: 0 0 20px 20px;
    padding: 10px 10px;
}
.box3 .two .tap {
    display: flex;
    margin-bottom: 10px;
}
.box3 .btn{
    display: flex;
    justify-content: flex-end;
}
.box3 .two span {
    margin: 0 25px 10px 7px;
    color: #c8c8c8;
}
.lisyd {
    width: 80px;
    height: 30px;
    background: #fff;
    text-align: center;
    line-height: 30px;
    font-size: 14px;
    border-radius: 15px;
    color: #5e6fac;
    border: 1px solid #495a95;
    margin-left: 10px;
}
.liuio{
    text-align: center;
    font-size: 13px;
    color: #999;
    padding-bottom: 25px;
}
.rightnew{
    margin-left: 80px;
}

.marginbox {
    width: 100%;
    background: #1b0b40;
    margin: 0px auto;
}
.box1 {
    width: 100%;
    margin: 0px auto;
    min-height: 150px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}



</style>
